package com.fauks.ssm.springmvc.xml;

import org.springframework.web.HttpRequestHandler;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


public class _02RequestHandlerController implements HttpRequestHandler {

    @Override
    public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setAttribute("second", "实现了HttpRequestHandler接口~~~~");
        request.getRequestDispatcher("/WEB-INF/jsp/first.jsp").forward(request, response);
    }
}
